<?php
/**
 * Created by PhpStorm.
 * User: alex
 * Date: 2018/11/6
 * Time: 下午2:07
 */

namespace BaseBundle\Form;
use Symfony\Component\Validator\Constraints as Assert;

class Task
{
    /**
     * @Assert\NotBlank(message="请填写管理员名称")
     */
    private $name;

    /**
     * @Assert\NotBlank(message="请填写管理员年龄")
     */
    private $age;

    /**
     * @return mixed
     */
    public function getAge()
    {
        return $this->age;
    }

    /**
     * @param mixed $age
     * @return Task
     */
    public function setAge($age)
    {
        $this->age = $age;
        return $this;
    }

    /**
     * @return mixed
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * @param mixed $name
     * @return Task
     */
    public function setName($name)
    {
        $this->name = $name;
        return $this;
    }


}